package io.gitee.twoke.generator.engine.impl;

import io.gitee.twoke.generator.engine.MetaDataService;
import io.gitee.twoke.generator.engine.impl.cfg.GenerateEngineConfigurationImpl;
import io.gitee.twoke.generator.engine.impl.metadata.TableColumnQuery;
import io.gitee.twoke.generator.engine.impl.metadata.TableQuery;
import io.gitee.twoke.generator.engine.impl.metadata.impl.TableColumnQueryImpl;
import io.gitee.twoke.generator.engine.impl.metadata.impl.TableQueryImpl;

public class MetaTableServiceImpl extends ServiceImpl implements MetaDataService {

    public MetaTableServiceImpl() {
    }

    public MetaTableServiceImpl(GenerateEngineConfigurationImpl processEngineConfiguration) {
        super(processEngineConfiguration);
    }

    @Override
    public TableQuery createTableQuery() {
        return new TableQueryImpl(commandExecutor, generateEngineConfiguration.getDatabaseType());
    }

    @Override
    public TableColumnQuery createTableColumQuery() {
        return new TableColumnQueryImpl(commandExecutor);
    }

}
